﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="delete.aspx.cs" Inherits="book_update" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="../css/addbook.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
<center>
    <div class="wrap">
        <div class="top">
            <div class="top1">
               
            </div>
        </div>
        <div class="shortnfo">
            <h2>当前位置：书籍管理->下架处理</h2>
            <div class="menuitems">
                
           <ul>
                      <li><a  href="../master/index.aspx" runat="server">首页</a></li>
                      <li><a href="~/book/select.aspx" runat="server">查询书籍</a></li>
                      <li><a   href="~/book/addbook.aspx" runat="server">添加书籍</a></li>
                      <li><a  href="~/book/update.aspx" runat="server">修改书籍</a></li>
                      <li><a href="../master/book.aspx">取消删除</a></li>
                  </ul>
            </div>
        </div>
        <div class="content">
           <table border="0" style="table-layout:fixed;width:100%;text-align:left;height:100%" >
                <tr>
                    <td>图书编号：<br />
                        <asp:TextBox ID="booknum" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        图书名称：<br /><asp:TextBox ID="bookname" runat="server"></asp:TextBox>
                    </td>
                    <td>
                        <br /><asp:Button ID="Button2" runat="server" Text="搜索" OnClick="Button2_Click"></asp:Button>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
<asp:GridView ID="Gv1" runat="server" AutoGenerateColumns="False" DataKeyNames="编号"  Height="100%" Width="100%" AllowPaging="True" PageSize="5" OnPageIndexChanging="Gv1_PageIndexChanging" OnRowDeleting="Gv1_RowDeleting">
    <Columns>
        <asp:BoundField DataField="编号" HeaderText="编号" ReadOnly="True" SortExpression="编号" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        </asp:BoundField>
        <asp:BoundField DataField="名称" HeaderText="名称" SortExpression="名称" >
        <ItemStyle Width="225px" />
        </asp:BoundField>
        <asp:BoundField DataField="作者" HeaderText="作者" SortExpression="作者" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <ItemStyle Width="78px" />
        </asp:BoundField>
        <asp:BoundField DataField="出版社" HeaderText="出版社" SortExpression="出版社" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <ItemStyle Width="163px" />
        </asp:BoundField>
        <asp:BoundField DataField="价格" HeaderText="价格" SortExpression="价格" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <ItemStyle Width="72px" />
        </asp:BoundField>
        <asp:BoundField DataField="出版日期" DataFormatString="{0:d}" HeaderText="出版日期" SortExpression="出版日期" >
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" />
        <ItemStyle Width="157px" />
        </asp:BoundField>
       <asp:TemplateField HeaderText="删除" ShowHeader="False">
                    <ItemTemplate>
                        <asp:ImageButton ID="ImageButton1" runat="server" CommandName="Delete" 
                            ImageUrl="~/image_oracle/BtnDelete.gif" 
                            onclientclick="return confirm('确定删除吗？');" />
                    </ItemTemplate>
                </asp:TemplateField>
    </Columns>
    <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
    <RowStyle HorizontalAlign="Center" Height="46px" />
</asp:GridView>
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString4 %>" ProviderName="<%$ ConnectionStrings:ConnectionString4.ProviderName %>" SelectCommand="select * from booksale.Book_infor"></asp:SqlDataSource>
                    </td>
                </tr>





            </table>
        </div>
        <div class="footer">
    <p>Copyright ©2019  All Rights Reserved</p> 
     </div>

    </div>

     
</center>
    </div>
    </form>
</body>
</html>
